const notifier = require('node-notifier')

module.exports = (title, message, fn) => {
  notifier.notify(
    {
      title,
      message
      // timeout: 3
    },
    (err, data, options) => {
      if (err) return
      fn && fn(options)
    }
  )
}
